<?php

declare(strict_types=1);

namespace App\Model\Stat;

use App\Model\CallBase;
use Hyperf\DbConnection\Model\Model;

/**
 *  每日统计-话单详情
 */
class StatDailyCall extends Model
{
    protected $connection = 'stat';
    protected $table = 'stat_daily_call';

    const SUB_TYPE = [
        0 => ['name' => '所有', 'from' => 0],
        1 => ['name' => '常规', 'from' => CallBase::FROM_MAIN],
        2 => ['name' => '天天福利', 'from' => CallBase::FROM_DAILY_FREE],
        3 => ['name' => '天天福利（主播呼叫）', 'from' => CallBase::FROM_DAILY_FREE_HOST],
        4 => ['name' => '随心聊', 'from' => CallBase::FROM_QUICK_MESSAGE],
        5 => ['name' => '视频约会', 'from' => CallBase::FROM_INVITE_CALL],
        6 => ['name' => '特惠视频', 'from' => CallBase::FROM_DISCOUNT_CALL],
    ];
}
